]> git.pld-linux.org Git - packages/kf5-karchive.git/commitdiff
- new
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 9 Jul 2014 09:44:04 +0000 (11:44 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 9 Jul 2014 09:44:04 +0000 (11:44 +0200)
kde5-karchive.spec [new file with mode: 0644]

diff --git a/kde5-karchive.spec b/kde5-karchive.spec
new file mode 100644 (file)
index 0000000..9f6a54d
--- /dev/null
@@ -0,0 +1,82 @@
+# TODO:
+# - proper place for *.pri,
+# - set ECM_MKSPECS_INSTALL_DIR in kde5-extra-cmake-modules
+# - runtime Requires if any
+# - dir /usr/include/KF5 not packaged
+%define         _state          stable
+%define                orgname         karchive
+
+Summary:       Reading, creating, and manipulating file archives
+Name:          kde5-%{orgname}
+Version:       5.0.0
+Release:       0.1
+License:       GPL v2+/LGPL v2.1+
+Group:         X11/Libraries
+Source0:       ftp://ftp.kde.org/pub/kde/%{_state}/frameworks/%{version}/%{orgname}-%{version}.tar.xz
+# Source0-md5: 58e76e44a262cc184af4424d8dc1230b
+URL:           http://www.kde.org/
+BuildRequires: Qt5Core-devel >= 5.2.0
+BuildRequires: Qt5Test-devel
+BuildRequires: bzip2-devel
+BuildRequires: cmake >= 2.8.12
+BuildRequires: kde5-extra-cmake-modules >= 1.0.0
+BuildRequires: rpmbuild(macros) >= 1.164
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+KArchive provides classes for easy reading, creation and manipulation
+of "archive" formats like ZIP and TAR.
+
+If also provides transparent compression and decompression of data,
+like the GZip format, via a subclass of QIODevice.
+
+%package devel
+Summary:       Header files for %{orgname} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{orgname}
+Group:         X11/Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{orgname} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{orgname}.
+
+%prep
+%setup -q -n %{orgname}-%{version}
+
+%build
+install -d build
+cd build
+%cmake \
+       -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules \
+       ../
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build/ install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README.md
+%attr(755,root,root) %ghost %{_libdir}/libKF5Archive.so.5
+%attr(755,root,root) %{_libdir}/libKF5Archive.so.5.0.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/KF5/KArchive
+%{_includedir}/KF5/karchive_version.h
+%attr(755,root,root) %{_libdir}/libKF5Archive.so
+%{_libdir}/cmake/KF5Archive
+%{_libdir}/qt5/mkspecs/modules/qt_KArchive.pri
This page took 0.049737 seconds and 4 git commands to generate.