- Fix download url

- Clean up spec file with spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cscope?expand=0&rev=24
This commit is contained in:
Martin Pluskal 2020-03-16 06:35:32 +00:00 committed by Git OBS Bridge
parent 259aa06ec8
commit e4000c5a0c
2 changed files with 16 additions and 11 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 16 06:29:00 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Fix download url
- Clean up spec file with spec-cleaner
-------------------------------------------------------------------
Fri Mar 13 07:55:40 UTC 2020 - Jiri Slaby <jslaby@suse.com>

View File

@ -23,7 +23,7 @@ Summary: Interactive Tool for Browsing C Source Code
License: BSD-3-Clause
Group: Development/Tools/Navigators
URL: http://cscope.sourceforge.net/
Source: http://sourceforge.net/projects/cscope/files/cscope/%{version}/%{name}-%{version}.tar.gz
Source: http://sourceforge.net/projects/cscope/files/cscope/v%{version}/%{name}-%{version}.tar.gz
Patch1: cscope-null.patch
Patch2: cscope-15.7-gcc-warnings.patch
Patch3: cscope-15.7-vpath.patch
@ -35,7 +35,6 @@ BuildRequires: bison
BuildRequires: flex
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Cscope is an interactive, screen-oriented tool that allows the user to
@ -53,25 +52,25 @@ browse through C source code files for specified elements of code.
%build
%configure
make %{?_smp_mflags}
%make_build
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 755 src/cscope %{buildroot}%{_bindir}/cscope
install -m 644 doc/cscope.1 %{buildroot}%{_mandir}/man1/cscope.1
install -m 755 contrib/xcscope/cscope-indexer %{buildroot}%{_bindir}/cscope-indexer
install -Dpm 0755 src/cscope \
%{buildroot}%{_bindir}/cscope
install -Dpm 0644 doc/cscope.1 \
%{buildroot}%{_mandir}/man1/cscope.1
install -Dpm 0755 contrib/xcscope/cscope-indexer \
%{buildroot}%{_bindir}/cscope-indexer
pushd contrib
%make_install
popd
%files
%defattr(-,root,root)
%doc TODO ChangeLog AUTHORS README NEWS
%license COPYING
%{_mandir}/man1/cscope.1%{ext_man}
%doc TODO ChangeLog AUTHORS README NEWS
%{_bindir}/cscope
%{_bindir}/ocs
%{_bindir}/cscope-indexer
%{_mandir}/man1/cscope.1%{?ext_man}
%changelog