commit 2c1ba4e4c1bf46b7f1c247c8c04ecea82cd4eded
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Mon Aug 29 07:56:11 2016 +0100
Use python macros
mimms.spec | 49 +++++++++++++++++++------------------------------
1 file changed, 19 insertions(+), 30 deletions(-)
---
diff --git a/mimms.spec b/mimms.spec
index 6000e26..42e88ba 100644
--- a/mimms.spec
+++ b/mimms.spec
@@ -1,54 +1,43 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
Summary: MMS stream downloader
-Name: mimms
+Name: mimms
Version: 3.2.1
-Release: 9%{?dist}
+Release: 10%{?dist}
License: GPLv3+
-Group: Applications/Multimedia
-URL:
http://savannah.nongnu.org/projects/mimms/
-Source:
http://download.savannah.gnu.org/releases/mimms/mimms-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: python-devel
-Requires: libmms >= 0.4
+Group: Applications/Multimedia
+URL:
http://savannah.nongnu.org/projects/mimms/
+Source:
http://download.savannah.gnu.org/releases/mimms/mimms-%{version}.tar.bz2
+BuildRequires: python2-devel
+Requires: libmms >= 0.4
BuildArch: noarch
%description
mimms is a program designed to allow you to download streams using the MMS
protocol and save them to your computer, as opposed to watching them live.
-
%prep
%setup -q
-
%build
-# No configure or SMP, this is just some python code
-%{__make}
-
+%py2_build
%install
-%{__rm} -rf %{buildroot}
-%{__make} install DESTDIR=%{buildroot}
-
-
-%clean
-%{__rm} -rf %{buildroot}
-
+%py2_install
%files
-%defattr(-,root,root,-)
-%doc AUTHORS COPYING NEWS README
+%doc AUTHORS NEWS README
+%license COPYING
%{_bindir}/mimms
-%{python_sitelib}/mimms-*.egg-info
-%{python_sitelib}/libmimms/
+%{python2_sitelib}/mimms-*.egg-info
+%{python2_sitelib}/libmimms/
%{_mandir}/man1/mimms.1*
-
%changelog
+* Mon Aug 29 2016 Leigh Scott <leigh123linux(a)googlemail.com> - 3.2.1-10
+- Use python macros
+- Clean spec file
+
* Mon Aug 01 2016 Sérgio Basto <sergio(a)serjux.com> - 3.2.1-9
--
-
https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_...
+-
https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_...
* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 3.2.1-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
@@ -71,6 +60,6 @@ protocol and save them to your computer, as opposed to watching them
live.
* Sat Oct 18 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 3.2.1-2
- rebuild for RPM Fusion
-* Sun Mar 18 2008 Matthias Saou <
http://freshrpms.net/> 3.2.1-1
+* Tue Mar 18 2008 Matthias Saou <
http://freshrpms.net/> 3.2.1-1
- Initial RPM release.