1 Summary: Command line parser for Qt programs
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
17 BuildRequires: qt-devel
20 QCommandLine is a command line parser for Qt programs (like getopt).
21 Features include options, switches, parameters and automatic
22 - --version/--help generation.
25 Summary: Development files for %{name}
26 Requires: %{name} = %{version}-%{release}
31 Development files for building against %{name}.
44 -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} -C build install \
51 DESTDIR=$RPM_BUILD_ROOT
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
59 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_libdir}/lib%{name}.so
62 %{_includedir}/%{name}
63 %{_pkgconfigdir}/QCommandLine.pc
64 %{_datadir}/cmake/Modules/FindQCommandLine.cmake
66 %post -p /sbin/ldconfig
67 %postun -p /sbin/ldconfig
70 rm -rf $RPM_BUILD_ROOT