-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added SPEC file to qt5 branch and checking in fixes for 1.9.11
- Loading branch information
1 parent
e8bab78
commit d4c27d9
Showing
10 changed files
with
138 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Summary: XDrawChem is an application for drawing and analyzing chemical structures and reactions. | ||
Name: xdrawchem | ||
Version: 1.9.11 | ||
Release: 1 | ||
License: GPL | ||
Group: Applications/Productivity | ||
URL: http://www.woodsidelabs.com/chemistry/xdrawchem.php | ||
Source0: https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}-%{release}.rpmsrc.tar.gz | ||
Requires: openbabel qt5-qtbase | ||
BuildRequires: openbabel openbabel-devel qt5-qtbase-devel | ||
BuildRoot: /var/tmp/%{name}-buildroot | ||
|
||
%description | ||
XDrawChem is an application for drawing and analyzing chemical structures and reactions. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT | ||
mkdir -p $RPM_BUILD_ROOT | ||
qmake-qt5 PREFIX="/usr/local" | ||
make | ||
|
||
%install | ||
install -D -m 0755 bin/xdrawchem $RPM_BUILD_ROOT/usr/local/bin/xdrawchem | ||
mkdir -p $RPM_BUILD_ROOT/usr/local/share/xdrawchem | ||
chmod 0755 $RPM_BUILD_ROOT/usr/local/share/xdrawchem | ||
cp ring/* $RPM_BUILD_ROOT/usr/local/share/xdrawchem | ||
mkdir -p $RPM_BUILD_ROOT/usr/local/share/xdrawchem/doc | ||
chmod 0755 $RPM_BUILD_ROOT/usr/local/share/xdrawchem/doc | ||
cp doc/* $RPM_BUILD_ROOT/usr/local/share/xdrawchem/doc | ||
|
||
%clean | ||
make clean | ||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%doc README.txt INSTALL.txt TODO.txt COPYRIGHT.txt | ||
/usr/local/bin/xdrawchem | ||
/usr/local/share/xdrawchem/* | ||
|
||
%changelog | ||
* Sun Dec 11 2016 Bryan Herger <bherger@users.sf.net> | ||
- initial version of spec file | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.