diff --git a/dist/rpm/barrier.spec.in b/dist/rpm/barrier.spec.in index 0f700078..1c7c5fa9 100644 --- a/dist/rpm/barrier.spec.in +++ b/dist/rpm/barrier.spec.in @@ -1,26 +1,105 @@ +%global barrier_revision @BARRIER_REVISION@ +Summary: Keyboard and mouse sharing solution Name: barrier Version: @BARRIER_VERSION@ -Summary: Keyboard and mouse sharing solution -Group: Applications/Productivity -URL: https://github.com/debauchee/barrier/ -Source: https://github.com/debauchee/barrier/ -Vendor: Debauchee -Packager: Debauchee +Release: @BARRIER_BUILD_NUMBER@%{?dist} License: GPLv2 -Release: @BARRIER_BUILD_NUMBER@@BARRIER_SNAPSHOT_INFO@%{?dist} +Group: System Environment/Daemons +URL: https://github.com/debauchee/barrier +Source0: https://github.com/debauchee/barrier/archive/v%{version}.tar.gz + +BuildRequires: cmake3 +BuildRequires: avahi-compat-libdns_sd-devel +BuildRequires: libX11-devel +BuildRequires: libXtst-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: libcurl-devel +BuildRequires: desktop-file-utils +BuildRequires: openssl-devel %description Barrier allows you to share one mouse and keyboard between multiple computers. Work seamlessly across Windows, macOS and Linux. +%prep +%setup -q -n %{name}-%{version} + + +%build +%{cmake3} -DSYNERGY_VERSION_STAGE:STRING=@BARRIER_VERSION_STAGE@ -DSYNERGY_REVISION:STRING=%{barrier_revision} . +make %{?_smp_mflags} + + +%install +install -D -p -m 0755 bin/barrier %{buildroot}%{_bindir}/barrier +install -D -p -m 0755 bin/barrierc %{buildroot}%{_bindir}/barrierc +install -D -p -m 0755 bin/barriers %{buildroot}%{_bindir}/barriers +install -D -p -m 0644 doc/barrierc.1 %{buildroot}%{_mandir}/man1/barrierc.1 +install -D -p -m 0644 doc/barriers.1 %{buildroot}%{_mandir}/man1/barriers.1 +install -D -p -m 0644 res/barrier.desktop %{buildroot}%{_datadir}/applications/barrier.desktop +install -D -p -m 0644 res/barrier.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/barrier.svg + +cd %{buildroot}%{_bindir} + +mkdir -p %{buildroot}%{_datadir}/metainfo +## Write AppStream +cat < %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml + + + + %{name} + FSFAP + GPLv2 + barrier + Share mouse and keyboard between multiple computers over the network + + +

+ Barrier allows you to share one mouse and keyboard between multiple computers. + Work seamlessly across Windows, macOS and Linux. +

+
+ + %{name}.desktop + + https://github.com/debauchee/barrier + + + barrier + barrierc + barriers + + + + + +
+END + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + --set-icon=%{_datadir}/icons/hicolor/scalable/apps/barrier.svg \ + %{buildroot}%{_datadir}/applications/barrier.desktop + +desktop-file-validate %{buildroot}/%{_datadir}/applications/barrier.desktop + %files -%defattr(755,root,root,-) +# None of the documentation files are actually useful here, they all point to +# the online website, so include just one, the README +%doc LICENSE ChangeLog res/Readme.txt doc/barrier.conf.example* %{_bindir}/barrier %{_bindir}/barrierc %{_bindir}/barriers -%attr(644,-,-) %{_datarootdir}/applications/barrier.desktop -%attr(644,-,-) %{_datarootdir}/icons/hicolor/scalable/apps/barrier.svg +%{_datadir}/icons/hicolor/scalable/apps/barrier.svg +%{_datadir}/applications/barrier.desktop +%{_datadir}/metainfo/%{name}.appdata.xml +%{_mandir}/man1/barrierc.1* +%{_mandir}/man1/barriers.1* %changelog +* Thu Mar 21 2019 wendall911 +- Actual working spec file for Fedora + * Sat Jan 27 2018 Debauchee - Initial version of the package +