Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Update spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajoja committed Apr 20, 2017
1 parent e80e053 commit ae64fe1
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 13 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ CODERS:

OTHERS:
Raúl García <[email protected]>
Pousa Duarte
14 changes: 14 additions & 0 deletions rpm/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="localonly">
<param name="scm">git</param>
<param name="url">https://github.com/Bajoja/indicator-kdeconnect.git</param>
<param name="filename">indicator-kdeconnect</param>
<param name="versionformat">@PARENT_TAG@~git%cd</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="localonly">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="localonly"/>
</services>
4 changes: 4 additions & 0 deletions rpm/_servicedata
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Bajoja/indicator-kdeconnect.git</param>
<param name="changesrevision">c694300619d2346d3c0950c966ddba4f7fe3562d</param></service></servicedata>
8 changes: 8 additions & 0 deletions rpm/indicator-kdeconnect.changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-------------------------------------------------------------------
Wed Apr 19 21:59:11 UTC 2017 - [email protected]

- Update to version 0.7.1:
* Translated using Weblate (Portuguese (Portugal))
* Translated using Weblate (Lithuanian)
* Translated using Weblate (Russian)

46 changes: 33 additions & 13 deletions rpm/indicator-kdeconnect.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ Source1: kdeconnect.png
%endif

# Package names only verified with Fedora.
# Should the packages in your distro be named dirrerently,
# Should the packages in your distro be named differently,
# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtk3-devel
BuildRequires: vala
BuildRequires: vala-devel

BuildRequires: pkgconfig(gtk+-3.0)
Requires: \python3-requests-oauthlib

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: libappindicator-gtk3-devel
Expand All @@ -65,37 +66,51 @@ A small program, kdeconnect-send, to help sending files from PC to Android is in
%setup -q

%build
mkdir build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX="%_prefix"
make PREFIX="%_prefix" %{?_smp_mflags}
popd
%__mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX="%_prefix" \
-DCMAKE_INSTALL_LIBEXEC="%_libexecdir" \
-DCMAKE_C_FLAGS="%optflags" \
-DCMAKE_CXX_FLAGS="%optflags"

make %{?_smp_mflags}

%install
pushd build
%{make_install}
cd build
%make_install

%if 0%{?suse_version}
%suse_update_desktop_file -r -i %name Network Telephony
%endif
popd

%files
%defattr(-,root,root,-)
%doc COPYING README.md

%if 0%{?sle_version} <= 120200 && 0%{?suse_version} <= 1320
%doc README.md COPYING
%else
%doc README.md
%license COPYING
%endif

%dir %{_datadir}/caja-python
%dir %{_datadir}/contractor
%dir %{_datadir}/indicator-kdeconnect
%dir %{_datadir}/nautilus-python
%dir %{_datadir}/nemo-python
%dir %{_datadir}/Thunar
%{_bindir}/%{name}
%{_bindir}/kdeconnect-send
%{_bindir}/indicator-kdeconnect/Sms.py
%{_datadir}/locale/*/LC_MESSAGES/indicator-kdeconnect.mo
%{_datadir}/applications/%{name}.desktop
%{_datadir}/contractor/kdeconnect.contract
%{_datadir}/%{name}/*
%{_datadir}/%{name}
%{_datadir}/nautilus-python/extensions/
%{_datadir}/nemo-python/extensions/
%{_datadir}/caja-python/extensions/
%{_datadir}/Thunar/sendto/
%if 0%{?suse_version}
%{_datadir}/pixmaps/kdeconnect.png
%endif
Expand All @@ -107,7 +122,7 @@ popd
%changelog
* Sat Apr 08 2017 21:30 Bajoja <[email protected]> 0.7.1
- Fix bug #51 - Nemo and Caja extensions not working
- Add Language: Lithuanian Language
- Add Language: Lituan

* Thu Mar 23 2017 2300 Bajoja <[email protected]> 0.7
- Fix bug #46 - Nautilus freeze on copy/paste - URGENT
Expand All @@ -121,6 +136,10 @@ popd
by extension can send multiple files
- Provide OpenSuse repo - Thanks to Raúl García

* Tue Mar 7 2017 0300 Markus S. <[email protected]> 0.6-1
- Ported openSUSE compatibility changes by Raúl García <[email protected]>
- Cleaned up specfile a bit.

* Thu Jan 26 2017 0200 Bajoja <[email protected]> 0.6
- Monochrome icons for Gnome.
- KDEConnect-send and Elementary OS can send multiple files.
Expand Down Expand Up @@ -156,3 +175,4 @@ popd

* Mon Aug 20 2012 0323 Bajoja <[email protected]> 0.1
- Initial Release.

0 comments on commit ae64fe1

Please sign in to comment.