Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 998c62618fb9d8115efe4664cb9c2bf8 > files > 3

lensfun-0.2.5-1.mga1.src.rpm

%define lib_major 0
%define lib_name %mklibname lensfun %{lib_major}
%define lib_dev %mklibname lensfun -d

Name: lensfun
Version: 0.2.5
Summary: A library to rectifying the defects introduced by your photographic equipment
Release: %mkrel 1
License: GPLv3
Group: System/Libraries
URL: http://lensfun.berlios.de/
Source0: http://download.berlios.de/lensfun/%{name}-%{version}.tar.bz2
# (fc) 0.2.3-1mdv fix build on 64bits
Patch1: lensfun-0.2.3-64bits.patch
BuildRequires: python
BuildRequires: glib2-devel
BuildRequires: libpng-devel
BuildRequires: zlib-devel

%description
A library to rectifying the defects introduced by your photographic equipment.

%files
%defattr(-,root,root,-)
%_datadir/lensfun
%_docdir/*

#------------------------------------------------------------------

%package -n	%{lib_name}
Summary: A library to rectifying the defects introduced by your photographic equipment
Group: System/Libraries
Requires: %{name}

%description -n	%{lib_name}
A library to rectifying the defects introduced by your photographic equipment.

%files -n %{lib_name}
%defattr(-,root,root,-)
%{_libdir}/*.so.*

#------------------------------------------------------------------

%package -n	%{lib_dev}
Summary: Development tools for programs which will use the %{name}
Group: Development/C
Requires: %{lib_name} = %{version}
Provides: %{name}-devel = %{version}-%{release}

%description -n	%{lib_dev}
This package contains the header files and .so libraries for developing %{name}.

%files -n %{lib_dev}
%defattr(-,root,root,755)
%{_includedir}/*.h*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lensfun.pc

#------------------------------------------------------------------

%prep

%setup -q 
%patch1 -p1 -b .64bits

%build
# We can't use macro configure
%setup_compile_flags \
	./configure \
	--prefix=%buildroot%_prefix \
	--libdir=%buildroot%_libdir \
	--sysconfdir=%buildroot%_sysconfdir

%make all

%install
rm -rf %{buildroot}
%makeinstall

%clean
rm -rf %{buildroot}


%changelog
* Mon Feb 07 2011 ahmad <ahmad> 0.2.5-1.mga1
+ Revision: 48708
- imported package lensfun


* Fri Aug 06 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.2.5-1mdv2011.0
+ Revision: 567185
- update to 0.2.5
- drop patch0, not needed any more

* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.2.4-2mdv2010.1
+ Revision: 523162
- rebuilt for 2010.1

* Sun Oct 18 2009 Nicolas Lécureuil <nlecureuil@mandriva.com> 0.2.4-1mdv2010.0
+ Revision: 458118
- Update to 0.2.4

* Sat Jul 11 2009 Frederic Crozat <fcrozat@mandriva.com> 0.2.3-1mdv2010.0
+ Revision: 394797
- Patch1: fix build on 64bits
- Release 0.2.3
- Patch0: fix linking

* Tue Jun 24 2008 Helio Chissini de Castro <helio@mandriva.com> 0.2.2b-1mdv2009.0
+ Revision: 228769
- Added missing buildrequires
- import lensfun