SHA256
1
0
forked from pool/antlr3c

- Cleanup with spec-cleaner for factory inclusion

OBS-URL: https://build.opensuse.org/package/show/network:telephony/antlr3c?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2014-09-09 14:49:43 +00:00 committed by Git OBS Bridge
parent 2fc2675b66
commit 66d79466f4
2 changed files with 29 additions and 21 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 9 14:49:09 UTC 2014 - tchvatal@suse.com
- Cleanup with spec-cleaner for factory inclusion
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 13 20:38:40 UTC 2014 - fisiu@opensuse.org Wed Aug 13 20:38:40 UTC 2014 - fisiu@opensuse.org

View File

@ -16,28 +16,30 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%define soname libantlr3c3_4
%define soname libantlr3c3_4
Name: antlr3c Name: antlr3c
Version: 3.4 Version: 3.4
Release: 0 Release: 0
License: BSD-3-Clause
Summary: C runtime for the ANTLR parsing library Summary: C runtime for the ANTLR parsing library
Url: http://www.antlr3.org/ License: BSD-3-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://www.antlr3.org/
Source: http://www.antlr3.org/download/C/lib%{name}-%{version}.tar.gz Source: http://www.antlr3.org/download/C/lib%{name}-%{version}.tar.gz
Patch1: antlr-64bit.diff Patch1: antlr-64bit.diff
Patch2: antlr-libversion.diff Patch2: antlr-libversion.diff
BuildRequires: gcc autoconf automake libtool BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
ANTLR, ANother Tool for Language Recognition, is a language tool that provides a ANTLR, ANother Tool for Language Recognition, is a language tool that provides a
framework for constructing recognizers, interpreters, compilers, and translators framework for constructing recognizers, interpreters, compilers, and translators
from grammatical descriptions containing actions in a variety of target from grammatical descriptions containing actions in a variety of target
languages. ANTLR provides excellent support for tree construction, tree walking, languages. ANTLR provides excellent support for tree construction, tree walking,
translation, error recovery, and error reporting. translation, error recovery, and error reporting.
%package -n %{soname} %package -n %{soname}
@ -45,10 +47,10 @@ Summary: C runtime for the ANTLR parsing library
Group: System/Libraries Group: System/Libraries
%description -n %{soname} %description -n %{soname}
ANTLR, ANother Tool for Language Recognition, is a language tool that provides a ANTLR, ANother Tool for Language Recognition, is a language tool that provides a
framework for constructing recognizers, interpreters, compilers, and translators framework for constructing recognizers, interpreters, compilers, and translators
from grammatical descriptions containing actions in a variety of target from grammatical descriptions containing actions in a variety of target
languages. ANTLR provides excellent support for tree construction, tree walking, languages. ANTLR provides excellent support for tree construction, tree walking,
translation, error recovery, and error reporting. translation, error recovery, and error reporting.
%package devel %package devel
@ -57,10 +59,10 @@ Group: Development/Libraries/C and C++
Requires: %{soname} = %{version} Requires: %{soname} = %{version}
%description devel %description devel
ANTLR, ANother Tool for Language Recognition, is a language tool that provides a ANTLR, ANother Tool for Language Recognition, is a language tool that provides a
framework for constructing recognizers, interpreters, compilers, and translators framework for constructing recognizers, interpreters, compilers, and translators
from grammatical descriptions containing actions in a variety of target from grammatical descriptions containing actions in a variety of target
languages. ANTLR provides excellent support for tree construction, tree walking, languages. ANTLR provides excellent support for tree construction, tree walking,
translation, error recovery, and error reporting. translation, error recovery, and error reporting.
This package contains header files and development libraries needed to This package contains header files and development libraries needed to
@ -68,16 +70,18 @@ develop programs using the antlr3c library.
%prep %prep
%setup -q -n lib%{name}-%{version} %setup -q -n lib%{name}-%{version}
%patch -P 1 -P 2 -p1 %patch1 -p1
%patch2 -p1
%build %build
autoreconf -fi autoreconf -fvi
%configure \ %configure \
--disable-static --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%make_install %make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{soname} -p /sbin/ldconfig %post -n %{soname} -p /sbin/ldconfig
@ -85,8 +89,7 @@ make %{?_smp_mflags}
%files -n %{soname} %files -n %{soname}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libantlr3c-%version.so %{_libdir}/libantlr3c-%{version}.so
%exclude %{_libdir}/libantlr3c.la
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)