Author: baggins Date: Wed Apr 18 09:04:27 2012 GMT Module: packages Tag: HEAD ---- Log message: - new
---- Files affected: packages/morfeusz-SGJP: morfeusz-SGJP.spec (NONE -> 1.1) (NEW), opt.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/morfeusz-SGJP/morfeusz-SGJP.spec diff -u /dev/null packages/morfeusz-SGJP/morfeusz-SGJP.spec:1.1 --- /dev/null Wed Apr 18 11:04:27 2012 +++ packages/morfeusz-SGJP/morfeusz-SGJP.spec Wed Apr 18 11:04:21 2012 @@ -0,0 +1,87 @@ +# $Revision$, $Date$ +Summary: Morfeusz morphological analyzer +Summary(pl.UTF-8): Analizator morfologiczny Morfeusz +Name: morfeusz-SGJP +Version: 20110416 +Release: 1 +License: BSD +Group: Applications/Dictionaries +Source0: http://sgjp.pl/morfeusz/download/%{name}-src-%{version}.tar.bz2 +# Source0-md5: f2ab93a0df3638f0c8a198c569aa3b63 +Patch0: opt.patch +URL: http://sgjp.pl/morfeusz/ +BuildRequires: libstdc++-devel +BuildRequires: readline-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Morpheus program performs morphological analysis for the Polish +language. The current version does not contain the module for guessing +unknown words. + +%description -l pl.UTF-8 +Program Morfeusz wykonuje analizę morfologiczną dla języka polskiego. +W obecnej wersji nie zawiera modułu zgadującego nieznane słowa (można +więc powiedzieć, że jest słownikiem morfologicznym). + +%package devel +Summary: Development files for Morfeusz +Summary(pl.UTF-8): Pliki do tworzenia aplikacji wykorzystujących Morfeusza +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +Development files for Morfeusz. + +%description devel -l pl.UTF-8 +Pliki do tworzenia aplikacji wykorzystujących Morfeusza. + +%prep +%setup -q -c +%patch0 -p1 + +%build +mkdir build +cd build +%ifarch %{x8664} +ln -s ../Makefile.linux64 Makefile +%else +ln -s ../Makefile.linux32 Makefile +%endif + +%{__make} -j1 \ + LDFLAGS="%{rpmldflags}" \ + OPT="%{rpmcppflags} %{rpmcflags} -Wno-error" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}} + +install -p build/libmorfeusz* $RPM_BUILD_ROOT%{_libdir} +install -p build/morfeusz* $RPM_BUILD_ROOT%{_bindir} +install -p morfeusz.h $RPM_BUILD_ROOT%{_includedir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CZYTAJTO README +%attr(755,root,root) %{_bindir}/morfeusz +%attr(755,root,root) %ghost %{_libdir}/libmorfeusz.so.0 +%attr(755,root,root) %{_libdir}/libmorfeuszSGJP.so.*.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libmorfeusz.so +%{_includedir}/morfeusz.h + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2012/04/18 09:04:21 baggins +- new + ================================================================ Index: packages/morfeusz-SGJP/opt.patch diff -u /dev/null packages/morfeusz-SGJP/opt.patch:1.1 --- /dev/null Wed Apr 18 11:04:27 2012 +++ packages/morfeusz-SGJP/opt.patch Wed Apr 18 11:04:21 2012 @@ -0,0 +1,36 @@ +--- morfeusz-SGJP-20110416/Makefile.linux32~ 2011-04-15 22:01:07.000000000 +0200 ++++ morfeusz-SGJP-20110416/Makefile.linux32 2012-04-18 10:58:25.614028670 +0200 +@@ -8,7 +8,7 @@ + + PROG = morfeusz + +-OPTFLAGS = -I$(SRCDIR) -I$(SRCDIR)/encodings -I$(SRCDIR)/dfabuilder -s -Wall -O2 ++OPTFLAGS = -I$(SRCDIR) -I$(SRCDIR)/encodings -I$(SRCDIR)/dfabuilder -s -Wall $(OPT) + CXXFLAGS = $(OPTFLAGS) -fPIC -Wno-write-strings + + include ../Makefile.common +@@ -19,5 +19,5 @@ + ln -sf $(LIBMORF).$(MAJOR) $(LIBMORF) + + $(PROG): $(SRCDIR)/client.cc $(SRCDIR)/morfeusz.h +- $(CXX) $(OPTFLAGS) -o $@ $< -L./ -lmorfeusz -lreadline ++ $(CXX) $(OPTFLAGS) $(LDFLAGS) -o $@ $< -L./ -lmorfeusz -lreadline + +--- morfeusz-SGJP-20110416/Makefile.linux64~ 2011-04-15 22:10:54.000000000 +0200 ++++ morfeusz-SGJP-20110416/Makefile.linux64 2012-04-18 10:58:58.587361766 +0200 +@@ -8,7 +8,7 @@ + + PROG = morfeusz + +-OPTFLAGS = -m64 -I$(SRCDIR) -I$(SRCDIR)/encodings -I$(SRCDIR)/dfabuilder -s -Wall -O2 ++OPTFLAGS = -I$(SRCDIR) -I$(SRCDIR)/encodings -I$(SRCDIR)/dfabuilder -s -Wall $(OPT) + CXXFLAGS = $(OPTFLAGS) -fPIC -Wno-write-strings + + include ../Makefile.common +@@ -19,5 +19,5 @@ + ln -sf $(LIBMORF).$(MAJOR) $(LIBMORF) + + $(PROG): $(SRCDIR)/client.cc $(SRCDIR)/morfeusz.h +- $(CXX) $(OPTFLAGS) -o $@ $< -L./ -lmorfeusz -lreadline ++ $(CXX) $(OPTFLAGS) $(LDFLAGS) -o $@ $< -L./ -lmorfeusz -lreadline + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
