1 Summary: Command line parser for Qt programs
7 Source0: http://xf.iksaif.net/dev/qcommandline/%{name}-%{version}.tar.bz2
8 # Source0-md5: 89cb472a54306c7399c55285e142a84c
9 # http://dev.iksaif.net/issues/253
10 Patch0: %{name}-fix-pkg-config-paths.patch
11 # http://dev.iksaif.net/issues/252 -- enhancements for PhantomJS
12 Patch101: 0001-new-ParameterFence-flag.patch
13 Patch102: 0002-new-NoShortName-flag-to-allow-options-with-no-short-.patch
14 Patch103: 0003-new-SuppressHelp-flag.patch
15 URL: http://xf.iksaif.net/dev/qcommandline.html
16 BuildRequires: QtCore-devel
18 BuildRequires: qt4-build
19 BuildRequires: qt4-qmake
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 QCommandLine is a command line parser for Qt programs (like getopt).
25 Features include options, switches, parameters and automatic
26 '--version' and '--help' generation.
29 Summary: Development files for %{name}
30 Requires: %{name} = %{version}-%{release}
33 Development files for building against %{name}.
46 -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules
50 rm -rf $RPM_BUILD_ROOT
51 %{__make} -C build install \
52 DESTDIR=$RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 rm -rf $RPM_BUILD_ROOT
60 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_libdir}/lib%{name}.so.*.*
66 %attr(755,root,root) %ghost %{_libdir}/lib%{name}.so.0
69 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_libdir}/lib%{name}.so
71 %{_includedir}/%{name}
72 %{_pkgconfigdir}/QCommandLine.pc
73 %{_datadir}/cmake/Modules/FindQCommandLine.cmake
74 %{_examplesdir}/%{name}-%{version}