--- python-django-dajaxice.spec.orig 2012-05-11 15:05:07.215367248 +0200 +++ python-django-dajaxice.spec 2012-05-11 15:41:19.776416821 +0200 @@ -1,10 +1,10 @@ -%define lang_name python -%define lib_prefix django -%define lib_name dajaxice +%global lang_name python +%global lib_prefix django +%global lib_name dajaxice Name: %{lang_name}-%{lib_prefix}-%{lib_name} Version: 0.1.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Agnostic and easy to use AJAX library for Django Group: Development/Libraries @@ -19,7 +19,7 @@ BuildRequires: python2-devel Requires: Django -%define lib_datadir %{_datadir}/%{name} +%global lib_datadir %{_datadir}/%{name} %description Easy to use AJAX library for Django, all the presentation logic resides outside @@ -36,7 +36,6 @@ %install -rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT # remove empty source files and bytecompiled files @@ -54,9 +53,6 @@ mv $RPM_BUILD_ROOT%{python_sitelib}/{,%{lang_name}_}$(basename ${egg}) done -%clean -rm -rf $RPM_BUILD_ROOT - %files %doc CHANGELOG COPYING README @@ -65,5 +61,9 @@ %changelog +* Fri May 11 2012 Jakub Filak - 0.1.8.1-2 +- The spec file corrected to be compliant with the fedora packaging guidlines +- The package name prefixed with the string "python-" + * Mon May 07 2012 Jakub Filak - 0.1.8.1-1 - Initial packaging