After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109826 - new rpm spec file
new rpm spec file
Status: RESOLVED INCOMPLETE
Product: gtkmm
Classification: Bindings
Component: build
2.2
Other All
: Normal minor
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-04-02 23:25 UTC by Gary Peck
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkmm 2.2 spec file (2.73 KB, text/plain)
2003-04-02 23:28 UTC, Gary Peck
  Details
Makefile patch to not build the examples directory (400 bytes, patch)
2003-04-02 23:28 UTC, Gary Peck
none Details | Review
new spec file, Makefile fix, and ChangeLog additions in patch format (3.13 KB, patch)
2003-04-03 22:57 UTC, Gary Peck
none Details | Review

Description Gary Peck 2003-04-02 23:25:53 UTC
I missed the 2.2 release at some point, but here's an updated spec file for
gtkmm2 2.2.1. It no longer insists on building static libraries and it now
has a "--without deps" option to speed up rpm rebuilds. It also needs the
attached patch to work (which just removes examples from SUBDIRS in the
Makefile).
Comment 1 Gary Peck 2003-04-02 23:28:11 UTC
Created attachment 15412 [details]
gtkmm 2.2 spec file
Comment 2 Gary Peck 2003-04-02 23:28:51 UTC
Created attachment 15413 [details] [review]
Makefile patch to not build the examples directory
Comment 3 Murray Cumming 2003-04-03 06:15:25 UTC
re. gtkmm 2.2.spec file: Please provide a patch, not a whole file, 
and not a file that is generated.
re. Makefile patch: This file is also generated. Providing a cvs 
patch will avoid this.
Comment 4 Murray Cumming 2003-04-03 06:16:30 UTC
re Makefile patch: Furthermore, what does this have to do with the 
spec file and why would we want to do it?

When you do provide a patch please patch the ChangeLog.
Comment 5 Gary Peck 2003-04-03 22:55:19 UTC
Sorry, I'm reattaching my changes as a patch. It's against version
2.2.1 as I have no interest (or time at the moment) to track CVS gtkmm. 

Regarding the Makefile patch: the examples directory is not included
in SUBDIRS of any of the other gtkmm projects; it doesn't need to be
compiled for binary packages; it adds significantly to the compile
time; and, most importantly, it doesn't always compile (at least in
2.2.1), which breaks rebuilds. I strongly suggest not shipping release
versions of packages which won't build cleanly with a simple
./configure; make; make install.
Comment 6 Gary Peck 2003-04-03 22:57:34 UTC
Created attachment 15450 [details] [review]
new spec file, Makefile fix, and ChangeLog additions in patch format
Comment 7 Murray Cumming 2003-04-04 06:40:14 UTC
> Regarding the Makefile patch: the examples directory is not included
> in SUBDIRS of any of the other gtkmm projects; 

It will be. If you look a the ChangeLog you'll see that this is a
recent change. Please don't change it back.

> it adds significantly to the compile
> time

Which isn't very relevant to the issue of rpms.

> and, most importantly, it doesn't always compile (at least in
> 2.2.1),

So report/fix the bugs.

> which breaks rebuilds. I strongly suggest not shipping release
> versions of packages which won't build cleanly with a simple
> ./configure; make; make install.

Again, fix/report bugs.

This can not be applied yet. The Makefile.am patch has nothing to do
with the rpm spec file. Also, you might consider using the version
number variables (e.g. of glib) from configure.in, like in the .pc.in
file. This would mean you don't have to keep changing the numbers
manually.
Comment 8 Murray Cumming 2003-04-13 13:03:05 UTC
Are you likely to revise this patch?
Comment 9 Gary Peck 2003-04-16 23:53:48 UTC
> > it adds significantly to the compile
> > time
> 
> Which isn't very relevant to the issue of rpms.

True, but gtkmm takes long enough to compile as it is :) My main
complaint, however, is that it breaks the build. The time is not that
big of a deal.

> > and, most importantly, it doesn't always compile (at least in
> > 2.2.1),
> 
> So report/fix the bugs.

Usually I do. However, I don't track the development of gtkmm, nor am
I familiar with the API. I just package it because I use applications
that require it.

> This can not be applied yet. The Makefile.am patch has nothing to do 
> with the rpm spec file. Also, you might consider using the version
> number variables (e.g. of glib) from configure.in, like in the
> .pc.in file. This would mean you don't have to keep changing the 
> numbers manually.

I'll take out the Makefile.am patch since you said that building the
examples was intended. Just be warned that the examples in 2.2.1 don't
build cleanly (at least on my machine). I'll file a bug report when I
have a chance. Also, I'll look at using variables from configure.in.

> Are you likely to revise this patch?

Yeah. I've been busy at work with a project deadline. I'll send a new
patch once that passes.
Comment 10 Murray Cumming 2003-04-18 13:33:49 UTC
>  My main
complaint, however, is that it breaks the build.

So please submit a bug. We can't fix it if you don't tell us.

I look forward to the new patch. Thanks.
Comment 11 Gary Peck 2003-05-08 23:10:35 UTC
Looks like Matthias picked up gtkmm2 at http://freshrpms.net/, so I'm
not going to package it myself anymore. I'm going to defer the spec
file to him since there's a better chance he'll be keeping it up-to-date.
Comment 12 Murray Cumming 2003-05-16 13:22:08 UTC
I sent him an email. No reply so far. As ever, the .spec.in file is
for people who care about it to maintain. Nobody else is going to
worry about it.