forked from GitHub/gf-core
Build separate package for the java editor
This commit is contained in:
@@ -125,9 +125,11 @@ dist:
|
||||
rpm: dist
|
||||
rpmbuild -ta $(DIST_DIR).tar.gz
|
||||
|
||||
install:
|
||||
install-gf2:
|
||||
$(INSTALL) -d $(bindir)
|
||||
$(INSTALL) -d $(libdir)/GF-$(PACKAGE_VERSION)
|
||||
$(INSTALL) ../bin/gf2 $(bindir)
|
||||
|
||||
install: install-gf2
|
||||
$(INSTALL) -d $(libdir)/GF-$(PACKAGE_VERSION)
|
||||
$(INSTALL) jgf2 $(bindir)
|
||||
$(INSTALL) java/gf-java.jar $(libdir)/GF-$(PACKAGE_VERSION)
|
||||
|
||||
13
src/gf.spec
13
src/gf.spec
@@ -42,6 +42,12 @@ GF particularly addresses the following aspects of grammars:
|
||||
libraries)
|
||||
|
||||
|
||||
%package editor
|
||||
Summary: GF
|
||||
Group: Sciences/Other
|
||||
%description editor
|
||||
This package contains the GF syntax editor.
|
||||
|
||||
|
||||
%prep
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@@ -50,7 +56,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%build
|
||||
cd src
|
||||
%configure
|
||||
make unix
|
||||
make unix jar
|
||||
|
||||
%install
|
||||
cd src
|
||||
@@ -60,11 +66,12 @@ cd src
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
%{_bindir}/gf2
|
||||
%doc LICENSE README doc/{DocGF.pdf,gf2-highlights.html,index.html}
|
||||
|
||||
%files editor
|
||||
%{_bindir}/jgf2
|
||||
%{_libdir}/%{name}-%{version}/gf-java.jar
|
||||
%doc LICENSE README doc/{DocGF.pdf,gf2-highlights.html,index.html}
|
||||
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user