~ubuntu-branches/debian/sid/3depict/sid

« back to all changes in this revision

Viewing changes to packaging/RPM/3Depict.spec

  • Committer: Bazaar Package Importer
  • Author(s): D Haley
  • Date: 2010-09-22 20:09:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922200924-bkyorwswrntnst4d
Tags: 0.0.2-1
* New upstream version
* Enable parallel build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Name:           3Depict
2
 
Version:        0.0.1
 
2
Version:        0.0.2
3
3
Release:        1%{?dist}
4
4
Summary:        Valued 3D point cloud visualization and analysis
5
5
Group:          Applications/Engineering
6
6
 
7
7
 
8
8
License:        GPLv3+
9
 
URL:            http://3Depict.sourceforge.net
10
 
Source0:        http://3Depict.sourceforge.net/path-to-file/3Depict-0.0.1.tar.gz
 
9
URL:            http://threedepict.sourceforge.net
 
10
Source0:        http://downloads.sourceforge.net/threedepict/%{name}-%{version}.tar.gz
 
11
 
11
12
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13
 
13
 
Patch0: %{name}-texture-path.patch
 
14
#Fedora specific texture path install location
 
15
Patch0: %{name}-%{version}-texture-path.patch
14
16
 
15
17
#Mathgl for plotting
16
18
BuildRequires:  mathgl-devel 
20
22
BuildRequires:  libxml2-devel 
21
23
#FTGL for 3d fonts
22
24
BuildRequires:  ftgl-devel 
 
25
#libpng for textures
 
26
BuildRequires: libpng-devel
23
27
#Desktop file utils for installing desktop file
24
28
BuildRequires: desktop-file-utils
25
29
#WX widgets
26
30
BuildRequires: wxGTK-devel
27
 
#FIXME: mathgl needs an update; should Require this in -devel
28
 
BuildRequires: gsl-devel
29
31
 
30
32
%description
31
33
This program is designed to help users visualize and analyze 3D point clouds
38
40
%patch0
39
41
 
40
42
%build
41
 
export LDFLAGS="-lGL -lpng"
42
43
%configure 
43
44
make %{?_smp_mflags}
44
45
 
48
49
make install DESTDIR=%{buildroot}
49
50
 
50
51
# Install the textures
51
 
mkdir -p %{buildroot}/%{_datadir}/%{name}/textures
52
 
cp -p src/textures/* %{buildroot}/%{_datadir}/%{name}/textures
53
 
 
54
 
 
 
52
mkdir -p %{buildroot}%{_datadir}/%{name}/textures
 
53
cp -p src/textures/* %{buildroot}%{_datadir}/%{name}/textures
 
54
 
 
55
 
 
56
#Installl the manpage
 
57
install -Dp -m 644 packaging/manpage/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
55
58
 
56
59
desktop-file-install \
57
 
                --dir $RPM_BUILD_ROOT%{_datadir}/applications \
58
 
                %{name}.desktop
59
 
        
60
 
 
61
 
%post -p /sbin/ldconfig
62
 
 
63
 
 
64
 
%postun -p /sbin/ldconfig
65
 
 
66
 
 
 
60
                --dir %{buildroot}%{_datadir}/applications \
 
61
                packaging/%{name}.desktop
 
62
mkdir -p %{buildroot}%{_datadir}/pixmaps/
 
63
install -Dp -m 644 src/tex-source/3Depict-icon.svg %{buildroot}%{_datadir}/pixmaps/
67
64
%clean
68
65
rm -rf %{buildroot}
69
66
 
71
68
%files
72
69
%defattr(-,root,root,-)
73
70
%doc COPYING AUTHORS ChangeLog README TODO
74
 
/%{_bindir}/%{name}
75
 
/%{_datadir}/%{name}/
 
71
%{_bindir}/%{name}
 
72
%dir %{_datadir}/%{name}/
 
73
%dir %{_datadir}/%{name}/textures
 
74
%{_datadir}/%{name}/textures/*.png
76
75
%{_datadir}/applications/%{name}.desktop
 
76
%{_mandir}/man1/%{name}.1.*
 
77
%{_datadir}/pixmaps/*
77
78
 
78
79
 
79
80
%changelog
80
 
* Sat Jul 24 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.1-1
 
81
* Tue Sep 21 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.2-1
 
82
- Update to 0.0.2
 
83
- Address comments in package review 
 
84
 
 
85
* Sat Aug 08 2010 D Haley <mycae(a!t)yahoo.com> - 0.0.1-1
81
86
- Initial package