remove braces from rpmspec macros

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=23
This commit is contained in:
Olaf Hering 2022-04-04 16:40:05 +00:00 committed by Git OBS Bridge
parent c9c8f8980d
commit 6311eef547

View File

@ -25,11 +25,11 @@ License: GPL-3.0+
Group: Productivity/Networking/Other Group: Productivity/Networking/Other
BuildRoot: %_tmppath/%name-%version-build BuildRoot: %_tmppath/%name-%version-build
URL: https://github.com/bcpierce00/unison URL: https://github.com/bcpierce00/unison
Source0: %{name}-%{version}.tar.xz Source0: %name-%version.tar.xz
#https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html #https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html
Source1: unison-2.48.4-manual.html Source1: unison-2.48.4-manual.html
Source2: %{name}.desktop Source2: %name.desktop
Source3: %{name}.png Source3: %name.png
BuildRequires: ocaml-lablgtk2-devel > 2.18.5 BuildRequires: ocaml-lablgtk2-devel > 2.18.5
BuildRequires: ocaml-rpm-macros >= 20210409 BuildRequires: ocaml-rpm-macros >= 20210409
BuildRequires: ocamlfind(findlib) BuildRequires: ocamlfind(findlib)
@ -54,22 +54,22 @@ replica to the other.
make UISTYLE=gtk2 NATIVE=true make UISTYLE=gtk2 NATIVE=true
%install %install
install -m 755 -D %{name} %{buildroot}%{_bindir}/%{name} install -m 755 -D %name %buildroot%_bindir/%name
install -m 755 -D %{name}-fsmonitor %{buildroot}%{_bindir}/%{name}-fsmonitor install -m 755 -D %name-fsmonitor %buildroot%_bindir/%name-fsmonitor
install -m 644 -D %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png install -m 644 -D %{SOURCE3} %buildroot%_datadir/pixmaps/%name.png
install -m 644 %{SOURCE1} unison-manual.html install -m 644 %{SOURCE1} unison-manual.html
%if %{defined suse_update_desktop_file} %if %{defined suse_update_desktop_file}
%suse_update_desktop_file -i %name Utility SyncUtility %suse_update_desktop_file -i %name Utility SyncUtility
%else %else
install -m 644 -D %{SOURCE2} %{buildroot}/%{_datadir}/applications/%{name}.desktop install -m 644 -D %{SOURCE2} %buildroot/%_datadir/applications/%name.desktop
%endif %endif
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING NEWS README unison-manual.html %doc COPYING NEWS README unison-manual.html
%{_datadir}/applications/* %_datadir/applications/*
%{_datadir}/pixmaps/* %_datadir/pixmaps/*
%{_bindir}/%{name} %_bindir/%name
%{_bindir}/%{name}-fsmonitor %_bindir/%name-fsmonitor
%changelog %changelog