[packages/kde5-kcodecs] - new

witekfl witekfl at pld-linux.org
Wed Jul 9 13:34:46 CEST 2014


commit 68edf00e910587f425537ffd1f514869c3ac1431
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Wed Jul 9 13:34:28 2014 +0200

    - new

 kde5-kcodecs.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
---
diff --git a/kde5-kcodecs.spec b/kde5-kcodecs.spec
new file mode 100644
index 0000000..01d83c9
--- /dev/null
+++ b/kde5-kcodecs.spec
@@ -0,0 +1,86 @@
+# TODO:
+# - proper place for *.pri,
+# - set ECM_MKSPECS_INSTALL_DIR in kde5-extra-cmake-modules
+# - _IMPORT_PREFIX also must be set somewhere
+# - runtime Requires if any
+# - these dirs are not own by any package
+#  /usr/include/KF5
+%define         _state          stable
+%define		orgname		kcodecs
+
+Summary:	String encoding
+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:	f87384816f5685a380b5a74c44695c7b
+URL:		http://www.kde.org/
+BuildRequires:	Qt5Core-devel >= 5.2.0
+BuildRequires:	Qt5Test-devel
+BuildRequires:	cmake >= 2.8.12
+BuildRequires:	kde5-extra-cmake-modules >= 1.0.0
+BuildRequires:	qt5-linguist
+BuildRequires:	rpmbuild(macros) >= 1.164
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+KCodecs provide a collection of methods to manipulate strings using
+various encodings. It supports:
+
+- base64
+- uu
+- quoted-printable
+
+%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 \
+	-D_IMPORT_PREFIX=%{_prefix} \
+	../
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build/ install \
+        DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{orgname}5_qt --with-qm
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{orgname}5_qt.lang
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %ghost %{_libdir}/libKF5Codecs.so.5
+%attr(755,root,root) %{_libdir}/libKF5Codecs.so.5.0.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libKF5Codecs.so
+%{_includedir}/KF5/KCodecs
+%{_includedir}/KF5/kcodecs_version.h
+%{_libdir}/cmake/KF5Codecs
+%{_libdir}/qt5/mkspecs/modules/qt_KCodecs.pri
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kde5-kcodecs.git/commitdiff/68edf00e910587f425537ffd1f514869c3ac1431



More information about the pld-cvs-commit mailing list