]> git.pld-linux.org Git - packages/qcommandline.git/blob - qcommandline.spec
e5ff877e059c19e174f1800d670663c6f41d0c0f
[packages/qcommandline.git] / qcommandline.spec
1 Summary:        Command line parser for Qt programs
2 Name:           qcommandline
3 Version:        0.3.0
4 Release:        1
5 License:        LGPL v2+
6 Group:          X11/Libraries
7 URL:            http://xf.iksaif.net/dev/qcommandline.html
8 Source0:        http://xf.iksaif.net/dev/qcommandline/%{name}-%{version}.tar.bz2
9 # Source0-md5:  89cb472a54306c7399c55285e142a84c
10 # http://dev.iksaif.net/issues/253
11 Patch0:         %{name}-fix-pkg-config-paths.patch
12 # http://dev.iksaif.net/issues/252 -- enhancements for PhantomJS
13 Patch101:       0001-new-ParameterFence-flag.patch
14 Patch102:       0002-new-NoShortName-flag-to-allow-options-with-no-short-.patch
15 Patch103:       0003-new-SuppressHelp-flag.patch
16 BuildRequires:  cmake
17 BuildRequires:  qt-devel
18
19 %description
20 QCommandLine is a command line parser for Qt programs (like getopt).
21 Features include options, switches, parameters and automatic
22 - --version/--help generation.
23
24 %package devel
25 Summary:        Development files for %{name}
26 Requires:       %{name} = %{version}-%{release}
27 Requires:       cmake
28 Requires:       pkgconfig
29
30 %description devel
31 Development files for building against %{name}.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36 %patch101 -p1
37 %patch102 -p1
38 %patch103 -p1
39
40 %build
41 mkdir build
42 cd build
43 %cmake .. \
44         -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} -C build install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*
56 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
57
58 %files devel
59 %defattr(644,root,root,755)
60 %doc examples/
61 %attr(755,root,root) %{_libdir}/lib%{name}.so
62 %{_includedir}/%{name}
63 %{_pkgconfigdir}/QCommandLine.pc
64 %{_datadir}/cmake/Modules/FindQCommandLine.cmake
65
66 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
This page took 0.02094 seconds and 2 git commands to generate.