diff --git a/.gitignore b/.gitignore index e69de29..1359514 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/tracer-0.5.4.tar.gz diff --git a/sources b/sources index e69de29..b896c73 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4a5a7afd596e9784118c7414567c6730 tracer-0.5.4.tar.gz diff --git a/tracer.spec b/tracer.spec new file mode 100644 index 0000000..8b3c4aa --- /dev/null +++ b/tracer.spec @@ -0,0 +1,145 @@ +Name: tracer +Version: 0.5.4 +Release: 1%{?dist} +Summary: Finds outdated running applications in your system + +BuildArch: noarch +Group: Applications/System +License: GPLv2 +URL: http://tracer-package.com/ +# Sources can be obtained by +# git clone git@github.com:FrostyX/tracer.git +# cd tracer +# tito build --tgz +Source0: %{name}-%{version}.tar.gz + +BuildRequires: python2-devel +BuildRequires: asciidoc +BuildRequires: python-sphinx +BuildRequires: libxslt +Requires: python +Requires: python-beautifulsoup4 +Requires: python-psutil + +%description +Tracer determines which applications use outdated files and prints them. For +special kind of applications such as services or daemons, it suggests a standard +command to restart it. Detecting whether file is outdated or not is based on a +simple idea. If application has loaded in memory any version of a file +which is provided by any package updated since system was booted up, tracer +consider this application as outdated. + +%package -n dnf-plugin-tracer +Summary: DNF plugin for %{name} +Requires: %{name} = %{version}-%{release} +Requires: dnf >= 0.4.9 + +%description -n dnf-plugin-tracer +Tracer finds outdated running applications in your system. + +This is plugin for DNF which runs tracer after every successful transaction. + +%prep +%setup -q + + +%build +make man + + +%install +mkdir -p %{buildroot}/%{_bindir} +mkdir -p %{buildroot}/%{_datadir}/tracer +mkdir -p %{buildroot}%{_mandir}/man8 +mkdir -p %{buildroot}/%{python2_sitelib}/tracer +cp -a bin/tracer.py %{buildroot}/%{_bindir}/tracer +cp -a data/* %{buildroot}/%{_datadir}/tracer/ +cp -ar tracer/* tests %{buildroot}/%{python2_sitelib}/tracer/ +install -m644 doc/build/man/tracer.8 %{buildroot}/%{_mandir}/man8/ + +mkdir -p %{buildroot}/%{python2_sitelib}/dnf-plugins +cp -ar integration/dnf/plugins/tracer.py %{buildroot}/%{python2_sitelib}/dnf-plugins/tracer.py + + +%files +%doc LICENSE README.md +%doc %{_mandir}/man8/tracer.8* +%{_bindir}/tracer +%{_datadir}/tracer/ +%{python2_sitelib}/tracer/ + +%files -n dnf-plugin-tracer +%{python2_sitelib}/dnf-plugins/tracer.py* + +%changelog +* Thu Oct 30 2014 Jakub Kadlčík 0.5.4-1 +- Rename DNF plugin to dnf-plugin-tracer (frostyx@email.cz) +- Trace affected applications instead of processes (frostyx@email.cz) +- Rewrite the description (frostyx@email.cz) + +* Sat Oct 25 2014 Jakub Kadlčík 0.5.3-1 +- Prevent traceback from theme (frostyx@email.cz) + +* Sat Oct 25 2014 Jakub Kadlčík 0.5.2-1 +- Add manpage (8) (frostyx@email.cz) +- Print helpers for all arguments passed to --show (frostyx@email.cz) + +* Sat Oct 18 2014 Jakub Kadlčík 0.5.1-1 +- Correct sentenses in note; Fix #18 (frostyx@email.cz) +- Dont automatically assume 'sudo'; Fix #17 (frostyx@email.cz) +- Sort applications alphabetically; Fix #16 (frostyx@email.cz) + +* Wed Oct 15 2014 Jakub Kadlčík 0.5.0-1 +- Add sphinx documentation (frostyx@email.cz) +- Add support for Travis CI and coveralls (frostyx@email.cz) +- Print more lines of the state in helper (frostyx@email.cz) +- Implement the application's 'ignore' property (frostyx@email.cz) +- Return also list of packages affecting process children (frostyx@email.cz) +- Dont print how to restart if application actually doesnt need it +- Print sudo in helpers (frostyx@email.cz) +- In DNF plugin print command for more informations (frostyx@email.cz) +- Add timestamp argument (frostyx@email.cz) +- UX improvements - immediately print how to restart (frostyx@email.cz) +- Implement loading user-defined rules (frostyx@email.cz) +- Implement loading user-defined applications (frostyx@email.cz) +- Print 'how to restart' only when it has been set (frostyx@email.cz) +- Use FilenameCleaner instead of _filename_without_version (frostyx@email.cz) +- Deal with interpreted processes (frostyx@email.cz) +- Add property 'category' to package (frostyx@email.cz) +- Prevent from Ctrl+C traceback; Fix #14 (frostyx@email.cz) +- Fix #new problem in process's exe; Related with 6c7bc46 (frostyx@email.cz) +- Use Router to call the right controller and its method (frostyx@email.cz) +- Recognize between locked database and insufficient permissions + (frostyx@email.cz) +- Specify program path to avoid conflict; Fix #12 (frostyx@email.cz) +- Refactor applications as objects instead of dicts (frostyx@email.cz) +- Fix lot of PEP warnings (frostyx@email.cz) +- Use MVC architecture (frostyx@email.cz) + +* Fri Aug 08 2014 Jakub Kadlčík 0.4.4-1 +- Refactor determining whether application is running or not (frostyx@email.cz) +- Add verbose mode (frostyx@email.cz) +- Print 'affected by' section only in verbose mode (frostyx@email.cz) +- In second verbose level print even affected files (frostyx@email.cz) + +* Mon Jul 28 2014 Jakub Kadlčík 0.4.3-1 +- Run tests before releasing new version (frostyx@email.cz) +- Add 'make test' target (frostyx@email.cz) +- Dont filter processes files (frostyx@email.cz) +- Print 'affected by' section in helpers (frostyx@email.cz) + +* Mon Jul 21 2014 Jakub Kadlčík 0.4.2-1 +- Dont try to get list of files provided by non-installed RPM package + (frostyx@email.cz) +- Print user-friendly exception when package database is locked + (frostyx@email.cz) + +* Fri Jul 18 2014 Jakub Kadlčík 0.4.1-1 +- Print 'You should restart' above processes list (frostyx@email.cz) +- Merge pull request #10 from xsuchy/pr-1 (frostyx@email.cz) +- Fix details in tracer.spec (frostyx@email.cz) +- Print 'how to restart' for session and static applications (frostyx@email.cz) +- Add 'tracer --helpers' parameter to list helpers (frostyx@email.cz) +* Tue Jul 08 2014 Jakub Kadlčík 0.4.0-1 +- new package built with tito +