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