Run spec-beautifier
OBS-URL: https://build.opensuse.org/package/show/graphics/librecad?expand=0&rev=9
This commit is contained in:
@@ -23,11 +23,12 @@ Summary: Computer-aided design (CAD) software package for 2D design and d
|
||||
License: GPL-2.0
|
||||
Group: Productivity/Graphics/CAD
|
||||
Url: http://librecad.org/
|
||||
|
||||
#Git-Clone: git://github.com/LibreCAD/LibreCAD
|
||||
#Git-Web: https://github.com/LibreCAD/LibreCAD/tags
|
||||
#DL-URL: https://github.com/LibreCAD/LibreCAD/archive/v1.0.3/librecad-1.0.3.tar.gz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
Source: %name-%version.tar.gz
|
||||
Source2: %name-rpmlintrc
|
||||
Patch1: librecad-no-date.diff
|
||||
Patch2: librecad-dxflib25.diff
|
||||
Patch3: librecad-external-dxflib.diff
|
||||
@@ -43,7 +44,7 @@ BuildRequires: muparser-devel
|
||||
BuildRequires: update-desktop-files
|
||||
Requires(post): desktop-file-utils
|
||||
Requires(postun): desktop-file-utils
|
||||
Recommends: %{name}-parts
|
||||
Recommends: %name-parts
|
||||
# old qcad had a newer version, so we provide all versions here.
|
||||
Provides: qcad
|
||||
Obsoletes: qcad <= 2.0.5
|
||||
@@ -56,7 +57,7 @@ and drafting.
|
||||
%package parts
|
||||
Summary: Parts collection for LibreCAD
|
||||
Group: Productivity/Graphics/CAD
|
||||
Requires: %{name}
|
||||
Requires: %name
|
||||
BuildArch: noarch
|
||||
|
||||
%description parts
|
||||
@@ -64,7 +65,7 @@ Collection of parts for LibreCAD, a Qt4 application to design 2D
|
||||
CAD drawings.
|
||||
|
||||
%prep
|
||||
%setup -qn LibreCAD-%{version}
|
||||
%setup -qn LibreCAD-%version
|
||||
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -p1
|
||||
|
||||
%build
|
||||
@@ -95,9 +96,9 @@ install -Dpm0644 "res/main/%name.png" "$b/%_datadir/pixmaps/%name.png";
|
||||
%suse_update_desktop_file -G "CAD Program" -r %name Graphics 2DGraphics VectorGraphics
|
||||
%endif
|
||||
# Fix rpmlint warning "invalid-desktopfile"
|
||||
perl -pi -e "s|image/vnd.dxf|image/vnd.dxf;|" %{buildroot}%{_datadir}/applications/librecad.desktop
|
||||
perl -pi -e "s|image/vnd.dxf|image/vnd.dxf;|" %buildroot%_datadir/applications/librecad.desktop
|
||||
|
||||
%fdupes -s %{buildroot}
|
||||
%fdupes -s %buildroot
|
||||
|
||||
%post
|
||||
%desktop_database_post
|
||||
@@ -106,7 +107,7 @@ perl -pi -e "s|image/vnd.dxf|image/vnd.dxf;|" %{buildroot}%{_datadir}/applicatio
|
||||
%desktop_database_postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%defattr(-,root,root)
|
||||
%doc gpl-2.0.txt
|
||||
%_bindir/librecad
|
||||
%_libdir/%name
|
||||
@@ -119,7 +120,7 @@ perl -pi -e "s|image/vnd.dxf|image/vnd.dxf;|" %{buildroot}%{_datadir}/applicatio
|
||||
%_datadir/%name/qm
|
||||
|
||||
%files parts
|
||||
%defattr(-,root,root,-)
|
||||
%defattr(-,root,root)
|
||||
%dir %_datadir/%name
|
||||
%_datadir/%name/library
|
||||
|
||||
|
Reference in New Issue
Block a user