Blame src/perfctr-2.6.x/perfctr.spec

Packit 577717
Name: perfctr
Packit 577717
Summary: Linux performance monitoring counters software
Packit 577717
Version: 2.6.42
Packit 577717
Release: 1
Packit 577717
License: LGPL
Packit 577717
Group: Development/Tools
Packit 577717
URL: http://user.it.uu.se/~mikpe/linux/perfctr/
Packit 577717
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Packit 577717
Source: %{name}-%{version}.tar.gz
Packit 577717
Packit 577717
%description
Packit 577717
This package adds support for using the Performance-Monitoring
Packit 577717
Counters (PMCs) found in many modern processors.
Packit 577717
Packit 577717
PMCs are "event counters" capable of recording any of a large
Packit 577717
number of performance-related events during execution.
Packit 577717
These events typically include instructions executed, cache
Packit 577717
misses, TLB misses, stalls, and other events specific to
Packit 577717
the microarchitecture of the processor being used.
Packit 577717
Packit 577717
PMCs are primarily used to identify low-level performance problems,
Packit 577717
and to validate code changes intended to improve performance.
Packit 577717
Packit 577717
%package devel
Packit 577717
Summary: Development headers and libraries for perfctr
Packit 577717
Group: Development/Libraries
Packit 577717
Packit 577717
%description devel
Packit 577717
The perfctr-devel package contains the header and object files
Packit 577717
necessary for developing programs which use the perfctr C library.
Packit 577717
Packit 577717
%prep
Packit 577717
%setup -q
Packit 577717
Packit 577717
%build
Packit 577717
make
Packit 577717
Packit 577717
%install
Packit 577717
rm -rf %{buildroot}
Packit 577717
make install2 \
Packit 577717
	PREFIX=%{buildroot}/%{_prefix} \
Packit 577717
	BINDIR=%{buildroot}/%{_bindir} \
Packit 577717
	LIBDIR=%{buildroot}/%{_libdir} \
Packit 577717
	INCLDIR=%{buildroot}/%{_includedir} \
Packit 577717
	ETCDIR=%{buildroot}/etc
Packit 577717
/sbin/ldconfig -n %{buildroot}/%{_libdir}
Packit 577717
Packit 577717
%clean
Packit 577717
rm -rf %{buildroot}
Packit 577717
Packit 577717
%files
Packit 577717
%defattr(-,root,root,-)
Packit 577717
%{_bindir}/perfex
Packit 577717
%{_libdir}/*.so*
Packit 577717
%config /etc/rc.d/init.d/perfctr
Packit 577717
%config /etc/udev/rules.d/*perfctr.rules
Packit 577717
Packit 577717
%doc README CHANGES TODO OTHER
Packit 577717
Packit 577717
%post
Packit 577717
if [ ! -c /dev/perfctr ]; then
Packit 577717
    mknod -m 644 /dev/perfctr c 10 182
Packit 577717
fi
Packit 577717
Packit 577717
/sbin/chkconfig --add perfctr
Packit 577717
Packit 577717
/sbin/ldconfig
Packit 577717
Packit 577717
%preun
Packit 577717
if [ "$1" = 0 ]; then
Packit 577717
    /sbin/chkconfig --del perfctr
Packit 577717
fi
Packit 577717
Packit 577717
%postun -p /sbin/ldconfig
Packit 577717
Packit 577717
%files devel
Packit 577717
%defattr(-,root,root,-)
Packit 577717
%{_includedir}/*.h
Packit 577717
%{_includedir}/*/*.h
Packit 577717
%{_libdir}/*.a
Packit 577717
Packit 577717
Packit 577717
%changelog
Packit 577717
* Fri Jan 23 2009 Mikael Pettersson <mikpe@it.uu.se> -
Packit 577717
- Remove 2.4 kernel support: do not fix up /etc/modules.conf.
Packit 577717
Packit 577717
* Sun Oct 07 2007 Mikael Pettersson <mikpe@it.uu.se> -
Packit 577717
- Corrected URL.
Packit 577717
Packit 577717
* Wed Jul 18 2007 Mikael Pettersson <mikpe@it.uu.se> -
Packit 577717
- Correct udev rules path (/etc/udev.d/ -> /etc/udev/).
Packit 577717
Packit 577717
* Mon Apr 09 2007 Mikael Pettersson <mikpe@it.uu.se> -
Packit 577717
- Install perfctr udev rules file and perfctr rc script
Packit 577717
  so /dev/perfctr creation with correct permissions and
Packit 577717
  perfctr module autoloading can work with udev.
Packit 577717
Packit 577717
* Tue Sep 16 2004 Mikael Pettersson <mikpe@csd.uu.se> -
Packit 577717
- Dropped obsolete x86 qualification from Summary.
Packit 577717
Packit 577717
* Sun Dec 21 2003 Mikael Pettersson <mikpe@csd.uu.se> -
Packit 577717
- Create /dev/perfctr in %post, not in %install and %files.
Packit 577717
  This avoids incorrect deletion of the node on package uninstall.
Packit 577717
- Don't add alias to /etc/modules.conf if it's already there.
Packit 577717
Packit 577717
* Sun Nov 23 2003 Mikael Pettersson <mikpe@csd.uu.se> -
Packit 577717
- libperfctr.so install and uninstall fixes.
Packit 577717
Packit 577717
* Tue Sep 16 2003 Mikael Pettersson <mikpe@csd.uu.se> -
Packit 577717
- No longer necessary to add module alias to /etc/modprobe.conf.
Packit 577717
Packit 577717
* Wed Jul 03 2003 Bryan O'Sullivan <bos@serpentine.com> -
Packit 577717
- Fix module files for both 2.4 and 2.5 kernels.
Packit 577717
Packit 577717
* Wed Jul 02 2003 Mikael Pettersson <mikpe@csd.uu.se> -
Packit 577717
- Corrected License and URL fields.
Packit 577717
Packit 577717
* Mon Jun 16 2003 Bryan O'Sullivan <bos@serpentine.com> -
Packit 577717
- Add device file.
Packit 577717
- Add module alias.
Packit 577717
Packit 577717
* Thu Jun 12 2003 Bryan O'Sullivan <bos@serpentine.com> - 
Packit 577717
- Initial build.