]> git.pld-linux.org Git - packages/kde4-libkdcraw.git/blobdiff - kde4-libkdcraw.spec
- up to 4.12.0; BR libraw-devel >= 0.15
[packages/kde4-libkdcraw.git] / kde4-libkdcraw.spec
index 41fe2d851f441ed7e6cfa7ec0c430c85311e7c6d..5515a93e8a3a6f704b12da7207af8f3a81e34a68 100644 (file)
@@ -1,20 +1,22 @@
+%define         _state          stable
+%define                orgname         libkdcraw
+%define         qtver           4.8.1
+
 Summary:       KDcraw libary
 Summary(pl.UTF-8):     Biblioteka KDcraw
-Name:          libkdcraw
-Version:       0.1.3
+Name:          kde4-libkdcraw
+Version:       4.12.0
 Release:       1
-License:       LGPL
-Group:         Libraries
-Source0:       http://dl.sourceforge.net/kipi/%{name}-%{version}.tar.bz2
-# Source0-md5: dc4772804c17d7eff4f913048b8e1c3c
-Patch0:                kde-ac260-lt.patch
-URL:           http://extragear.kde.org/apps/kipi/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: gettext-devel
-BuildRequires: kdelibs-devel >= 9:3.2.0
+License:       GPL v2+
+Group:         X11/Libraries
+Source0:       ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
+# Source0-md5: e4f1c1a5814e6d016289a6cf38fe2a97
+URL:           http://www.kde.org/
 BuildRequires: lcms-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libraw-devel >= 0.15
 BuildRequires: rpmbuild(macros) >= 1.164
+Obsoletes:     libkdcraw < 4.8.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,9 +28,9 @@ Biblioteka KDcraw jest częścią projektu KIPI.
 %package devel
 Summary:       Header files for libkdcraw development
 Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających libkdcraw
-Group:         Development/Libraries
-Requires:      %{name} = %{epoch}:%{version}-%{release}
-Requires:      kdelibs-devel >= 9:3.2.0
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     libkdcraw-devel < 4.8.0
 
 %description devel
 Header files for libkdcraw development.
@@ -37,38 +39,37 @@ Header files for libkdcraw development.
 Pliki nagłówkowe dla programistów używających libkdcraw.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{orgname}-%{version}
 
 %build
-cp -f /usr/share/automake/config.sub admin
-%{__make} -f admin/Makefile.common cvs
-%configure
+install -d build
+cd build
+%cmake \
+               ../
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       kde_htmldir=%{_kdedocdir} \
-       kde_libs_htmldir=%{_kdedocdir}
-
-%find_lang %{name} --all-name
+%{__make} -C build/ install \
+        DESTDIR=$RPM_BUILD_ROOT \
+        kde_htmldir=%{_kdedocdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.lang
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so.?.?.?
-%dir %{_libdir}/libkdcraw2
-%attr(755,root,root) %{_libdir}/libkdcraw2/kdcraw
-%{_iconsdir}/hicolor/*x*/*/*.*
+%attr(755,root,root) %ghost %{_libdir}/libkdcraw.so.??
+%attr(755,root,root) %{_libdir}/libkdcraw.so.*.*.*
+%{_datadir}/apps/libkdcraw
+%{_iconsdir}/hicolor/*x*/apps/kdcraw.png
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libkdcraw.so
 %{_includedir}/libkdcraw
-%{_pkgconfigdir}/*.pc
+%{_pkgconfigdir}/libkdcraw.pc
This page took 0.028289 seconds and 4 git commands to generate.