2007-01-15 23:36:54 +00:00
|
|
|
#
|
2012-03-01 16:27:41 +00:00
|
|
|
# spec file for package sgrep
|
2007-01-15 23:36:54 +00:00
|
|
|
#
|
2020-04-16 07:00:10 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2007-01-15 23:36:54 +00:00
|
|
|
#
|
2008-10-23 02:47:26 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2020-04-16 07:00:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:36:54 +00:00
|
|
|
#
|
|
|
|
|
|
2008-10-23 02:47:26 +00:00
|
|
|
|
|
|
|
|
Name: sgrep
|
2020-04-16 07:00:10 +00:00
|
|
|
Version: 1.94a
|
2012-03-01 16:27:41 +00:00
|
|
|
Release: 0
|
2008-10-23 02:47:26 +00:00
|
|
|
Summary: Searching for Structured Patterns
|
2020-04-16 07:00:10 +00:00
|
|
|
License: GPL-2.0-or-later
|
2012-03-01 16:27:41 +00:00
|
|
|
Group: Productivity/Text/Utilities
|
2020-04-16 07:00:10 +00:00
|
|
|
URL: https://www.cs.helsinki.fi/~jjaakkol/sgrep.html
|
|
|
|
|
Source: https://fossies.org/linux/misc/old/%{name}-%{version}.tar.gz
|
|
|
|
|
Patch0: sgrep-sgreprc.diff
|
2007-01-15 23:36:54 +00:00
|
|
|
|
|
|
|
|
%description
|
2020-04-16 07:00:10 +00:00
|
|
|
Sgrep is like "grep" but it will also work for structured patterns. You can
|
|
|
|
|
use the program to extract fragments from SGML/XML or any other well formed
|
|
|
|
|
text files (including UTF-8 encoded files).
|
2008-10-23 02:47:26 +00:00
|
|
|
|
2007-01-15 23:36:54 +00:00
|
|
|
%prep
|
2020-04-16 07:00:10 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:36:54 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-04-16 07:00:10 +00:00
|
|
|
%configure
|
|
|
|
|
%make_build
|
2007-01-15 23:36:54 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-04-16 07:00:10 +00:00
|
|
|
%make_install
|
|
|
|
|
install -Dpm 0644 sample.sgreprc \
|
|
|
|
|
%{buildroot}/%{_sysconfdir}/sgreprc
|
|
|
|
|
rm %{buildroot}%{_datadir}/sample.sgreprc
|
2007-01-15 23:36:54 +00:00
|
|
|
|
|
|
|
|
%files
|
2020-04-16 07:00:10 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README sgrep.lsm
|
2007-01-15 23:36:54 +00:00
|
|
|
%doc sample.sgreprc
|
|
|
|
|
%config %{_sysconfdir}/sgreprc
|
|
|
|
|
%{_bindir}/sgrep
|
2020-04-16 07:00:10 +00:00
|
|
|
%{_mandir}/man1/sgrep.1%{?ext_man}
|
2007-01-15 23:36:54 +00:00
|
|
|
|
2008-10-23 02:47:26 +00:00
|
|
|
%changelog
|