diff --git a/.gitignore b/.gitignore index e69de29..f1cfd33 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/copyq-2.4.6.tar.gz diff --git a/copyq.spec b/copyq.spec new file mode 100644 index 0000000..9d82b00 --- /dev/null +++ b/copyq.spec @@ -0,0 +1,67 @@ +Name: copyq +Summary: Advanced clipboard manager +Version: 2.4.6 +Release: 4%{?dist} +License: GPLv3+ +Url: http://sourceforge.net/projects/%{name}/ +Source0: http://sourceforge.net/projects/%{name}/files/%{name}-%{version}.tar.gz +BuildRequires: cmake, libXtst-devel, qt4-devel, qtwebkit-devel +BuildRequires: desktop-file-utils, libXfixes-devel + +%description +CopyQ is advanced clipboard manager with searchable and editable history with +support for image formats, command line control and more. + +%prep +%setup -qn %{name}-%{version} + +%build +%cmake -DCMAKE_SKIP_RPATH=TRUE \ + -DWITH_TESTS=TRUE \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DPLUGIN_INSTALL_PREFIX=%{_libdir}/%{name}/plugins \ + -DTRANSLATION_INSTALL_PREFIX:PATH=share/%{name}/locale +make %{?_smp_mflags} + +%install +make DESTDIR=$RPM_BUILD_ROOT install +%find_lang %{name} --with-qt + +%check +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +%files -f %{name}.lang +%doc AUTHORS CHANGES HACKING README.md +%license LICENSE +%{_bindir}/%{name} +%{_libdir}/%{name}/ +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}*.svg +%dir %{_datadir}/%{name}/ +%dir %{_datadir}/%{name}/locale/ +%{_datadir}/%{name}/themes/ + +%post +/usr/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + /usr/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null + /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%changelog +* Sat Apr 25 2015 Gerald Cox 2.4.6-4 +- Remove superfluous explicit requires rhbz#1211831 + +* Fri Apr 24 2015 Gerald Cox 2.4.6-3 +- Resolve duplicate file warnings, runtime dependencies rhbz#1211831 + +* Fri Apr 24 2015 Gerald Cox 2.4.6-2 +- Enable end user testing - http://goo.gl/ue6e2F rhbz#1211831 + +* Tue Apr 14 2015 Gerald Cox 2.4.6-1 +- Initial Build 2.4.6-1 rhbz#1211831 diff --git a/sources b/sources index e69de29..9453dab 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d5dbc9dd506baf2657fecab1a8485616 copyq-2.4.6.tar.gz