Hello community,

here is the log from the commit of package lensfun for openSUSE:Factory
checked in at Thu Oct 13 12:37:36 CEST 2011.



--------
--- openSUSE:Factory/lensfun/lensfun.changes    2011-09-23 02:07:41.000000000 
+0200
+++ lensfun/lensfun.changes     2011-10-07 14:39:33.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Oct  7 14:38:37 UTC 2011 - [email protected]
+
+- Added provides for obsoletes (fix for RPMLINT warning)
+- Cleaned up spec file formatting
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lensfun.spec ++++++
--- /var/tmp/diff_new_pack.2dzsu4/_old  2011-10-13 12:36:28.000000000 +0200
+++ /var/tmp/diff_new_pack.2dzsu4/_new  2011-10-13 12:36:28.000000000 +0200
@@ -15,14 +15,14 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
-
 Name:           lensfun
-Summary:        A photographic lens database and a library for accessing it
 Version:        0.2.5
 Release:        19
+License:        LGPLv3
+Summary:        A photographic lens database and a library for accessing it
+%define sonum   0
 Url:            http://lensfun.berlios.de/
+Group:          System/Libraries
 Source0:        http://download.berlios.de/lensfun/lensfun-%{version}.tar.bz2
 # This patch got created via
 # svn diff svn://svn.berlios.de/lensfun/tags/0.2.5/data 
svn://svn.berlios.de/lensfun/trunk/data > lens_database_update.diff
@@ -31,9 +31,12 @@
 Patch2:         lensfun-fixcrash.patch
 # PATCH-FIX-UPSTREAM lensfun-0.2.5-cpuid.patch [email protected] -- fix crash 
on cpu detection (from svn)
 Patch3:         lensfun-0.2.5-cpuid.patch
-License:        LGPLv3
-Group:          System/Libraries
-BuildRequires:  doxygen gcc-c++ glib2-devel libpng-devel python zlib
+BuildRequires:  doxygen
+BuildRequires:  gcc-c++
+BuildRequires:  libpng-devel
+BuildRequires:  python
+BuildRequires:  zlib
+BuildRequires:  pkgconfig(glib-2.0)
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -55,12 +58,10 @@
 
 %package data
 License:        LGPLv3
-Summary:        Library files for lensfun/lensfun-devel
+Summary:        Data files for %{name}/%{name}-devel
 Group:          System/Libraries
+Requires:       lib%{name}%{sonum} = %{version}
 BuildArch:      noarch
-Requires:       liblensfun0 = %{version}-%{release}
-Provides:       %{name} = %{version}
-Obsoletes:      %{name} < %{version}
 
 %description data
 The goal of the lensfun library is to provide a open source database
@@ -79,39 +80,40 @@
 transversal (also known as lateral) chromatic aberrations, vignetting
 and colour contribution index of the lens.
 
-%package -n liblensfun0
+%package -n lib%{name}%{sonum}
 License:        LGPLv3
-Summary:        Library files for lensfun/lensfun-devel
+Summary:        Library files for %{name}/%{name}-devel
 Group:          System/Libraries
 Requires:       %{name}-data
-Obsoletes:      lensfun <= 0.2.5
+Provides:       %{name} = %{version}
+Obsoletes:      %{name} < %{version}
 
-%description -n liblensfun0
-Library files needed by the use the lensfun library/database.
+%description -n lib%{name}%{sonum}
+Library files needed by the use the %{name} library/database.
 
 %package doc
 License:        LGPLv3
-Summary:        Documentation for lensunf
+Summary:        Documentation for %{name}
 Group:          System/Libraries
 Requires:       %{name}-data
 
 %description doc
-Documentation and manual files for the lensfun library/database.
+Documentation and manual files for the %{name} library/database.
 
 %package devel
 License:        LGPLv3
-Summary:        Header and library definition files for lensfun
+Summary:        Header and library definition files for %{name}
 Group:          Development/Libraries/C and C++
-Requires:       liblensfun0  = %{version}
 Requires:       %{name}-data = %{version}
+Requires:       lib%{name}%{sonum} = %{version}
 Recommends:     %{name}-doc  = %{version}
 
 %description devel
 Header and library definition files for developing applications
-that use the lensfun library/database.
+that use the %{name} library/database.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch2 -p1
 %patch3 -p1
 cd data
@@ -123,50 +125,48 @@
 %ifarch ppc ppc64
        --vectorization="" \
 %endif
-       --cflags="${CFLAGS:-$RPM_OPT_FLAGS}" \
-       --cxxflags="${CXXFLAGS:-$RPM_OPT_FLAGS}" \
+       --cflags="${CFLAGS:-%{optflags}}" \
+       --cxxflags="${CXXFLAGS:-%{optflags}}" \
        --prefix=%{_prefix} \
        --bindir=%{_bindir} \
        --sysconfdir=%{_sysconfdir} \
-       --datadir=%{_datadir}/lensfun \
+       --datadir=%{_datadir}/%{name} \
        --libdir=%{_libdir} \
        --includedir=%{_includedir} \
        --libexecdir=%{_libexecdir}
 # set GCC.LDFLAGS to avoid stripping and useless -debuginfo
-make AUTODEP=0 GCC.LDFLAGS.release="" V=1 %{?_smp_mflags} lensfun manual
+make AUTODEP=0 GCC.LDFLAGS.release="" V=1 %{?_smp_mflags} %{name} manual
 
 %install
 make AUTODEP=0 INSTALL_PREFIX=%{?buildroot:%{buildroot}} install
-mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages
-mv $RPM_BUILD_ROOT/usr/share/doc/lensfun-%version 
$RPM_BUILD_ROOT/usr/share/doc/packages/lensfun
+mkdir -p %{buildroot}%{_docdir}
+mv %{buildroot}%{_datadir}/doc/%{name}-%{version} 
%{buildroot}%{_docdir}/%{name}
 
-%post -n liblensfun0 -p /sbin/ldconfig
-
-%postun -n liblensfun0 -p /sbin/ldconfig
+%post   -n lib%{name}%{sonum} -p /sbin/ldconfig
+%postun -n lib%{name}%{sonum} -p /sbin/ldconfig
 
 %post devel -p /sbin/ldconfig
-
 %postun devel -p /sbin/ldconfig
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %files doc
 %defattr(-,root,root)
-%{_docdir}/lensfun
+%{_docdir}/%{name}
 
 %files data
 %defattr(-,root,root)
-%{_datadir}/lensfun/
+%{_datadir}/%{name}/
 
-%files -n liblensfun0
+%files -n lib%{name}%{sonum}
 %defattr(-,root,root)
 %{_libdir}/*.so.*
 
 %files devel
 %defattr(-,root,root)
+%{_includedir}/*.h
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*
-%{_includedir}/*.h
 
 %changelog

continue with "q"...



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to